package com.glorysoft.knowlespda.base

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.glorysoft.knowlespda.BR

/**
 * FileName: Constant
 * Author: XJH
 * Date: 2021/5/13 11:37
 * Description:
 * History:
 */
class Constant {

    companion object : BaseObservable() {
        @get:Bindable
//        var REQUEST_URL_DEBUG: String = "https://2c385418c4.goho.co/api/PDA" //接口地址
        var REQUEST_URL_DEBUG: String = "http://10.12.101.77:9862/api/PDA" //接口地址
            set(value) {
                field = value
                // 只更新本字段
                notifyPropertyChanged(BR.rEQUEST_URL_DEBUG)

                // 更新所有字段
//                notifyChange()
            }

        @get:Bindable
        var FILE_URL: String = "http://10.3.101.141:8033/Version.txt" //APK下载地址
            set(value) {
                field = value
                notifyPropertyChanged(BR.fILE_URL)
            }

        var CURRENT_USER: String = ""

        var PDA_NO : String = ""
        var IMEI_ID : String = ""


        var VRESION: String = "1.0"

        var RESPONSE_TIME = 60

        @get:Bindable
        var LANGUAGE: String = "中文"
            set(value) {
                field = value
                // 只更新本字段
                notifyPropertyChanged(BR.rEQUEST_URL_DEBUG)

                // 更新所有字段
//                notifyChange()
            }
    }
}